import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.dom4j.Element;
import org.dom4j.QName;

import com.alibaba.fastjson.JSONObject;

import com.justep.common.SystemUtils;
import com.justep.ui.wx.WXComponentContext;
import com.justep.ui.wx.component.WXComponent;

public class Wxxcx_login extends WXComponent {
	private Element eDef;
	Map<String, Object> context;
	
	public String getTagName(){
		return "block";
	}
	
	@Override
	public JSONObject doExecute(Element bound, Map<String, Object> context, WXComponentContext wxContext) {
		eDef = bound;
		this.context = context;
		
		JSONObject ret = new JSONObject();
        ret.put("miniappLogin", !"false".equalsIgnoreCase(eDef.attributeValue("miniappLogin")));
        ret.put("mpLogin", "true".equalsIgnoreCase(eDef.attributeValue("mpLogin")));
		return ret;
	}
}
